#!/usr/bin/env bash

touch .core-bash_history # allow bash history to persist across invocations

dependabot \
  -v "$(pwd)"/.core-bash_history:/home/dependabot/.bash_history \
  -v "$(pwd)"/updater/bin:/home/dependabot/dependabot-updater/bin \
  -v "$(pwd)"/updater/lib:/home/dependabot/dependabot-updater/lib \
  -v "$(pwd)"/bin:/home/dependabot/bin \
  -v "$(pwd)"/bazel:/home/dependabot/bazel \
  -v "$(pwd)"/bun:/home/dependabot/bun \
  -v "$(pwd)"/bundler:/home/dependabot/bundler \
  -v "$(pwd)"/cargo:/home/dependabot/cargo \
  -v "$(pwd)"/common:/home/dependabot/common \
  -v "$(pwd)"/composer:/home/dependabot/composer \
  -v "$(pwd)"/conda:/home/dependabot/conda \
  -v "$(pwd)"/devcontainers:/home/dependabot/devcontainers \
  -v "$(pwd)"/docker:/home/dependabot/docker \
  -v "$(pwd)"/dotnet_sdk:/home/dependabot/dotnet_sdk \
  -v "$(pwd)"/elm:/home/dependabot/elm \
  -v "$(pwd)"/git_submodules:/home/dependabot/git_submodules \
  -v "$(pwd)"/github_actions:/home/dependabot/github_actions \
  -v "$(pwd)"/go_modules:/home/dependabot/go_modules \
  -v "$(pwd)"/gradle:/home/dependabot/gradle \
  -v "$(pwd)"/helm:/home/dependabot/helm \
  -v "$(pwd)"/hex:/home/dependabot/hex \
  -v "$(pwd)"/julia:/home/dependabot/julia \
  -v "$(pwd)"/maven:/home/dependabot/maven \
  -v "$(pwd)"/npm_and_yarn:/home/dependabot/npm_and_yarn \
  -v "$(pwd)"/nuget:/home/dependabot/nuget \
  -v "$(pwd)"/pub:/home/dependabot/pub \
  -v "$(pwd)"/python:/home/dependabot/python \
  -v "$(pwd)"/rust_toolchain:/home/dependabot/rust_toolchain \
  -v "$(pwd)"/swift:/home/dependabot/swift \
  -v "$(pwd)"/terraform:/home/dependabot/terraform \
  -v "$(pwd)"/opentofu:/home/dependabot/opentofu \
  -v "$(pwd)"/uv:/home/dependabot/uv \
  -v "$(pwd)"/vcpkg:/home/dependabot/vcpkg \
  "$@"
